<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1-20130512"/>
<title>3D Cell: MyPolygon Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3D Cell
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1-20130512 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_my_polygon-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">MyPolygon Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A polygon class.  
 <a href="class_my_polygon.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="csg__type_8h_source.html">csg_type.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2661852a272ea82080d84ab38e2bfca7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a2661852a272ea82080d84ab38e2bfca7">MyPolygon</a> (vector&lt; <a class="el" href="class_vertex3.html">Vertex3</a> &gt; _vertices, double _share)</td></tr>
<tr class="memdesc:a2661852a272ea82080d84ab38e2bfca7"><td class="mdescLeft">&#160;</td><td class="mdescRight">A constructor.  <a href="#a2661852a272ea82080d84ab38e2bfca7">More...</a><br/></td></tr>
<tr class="separator:a2661852a272ea82080d84ab38e2bfca7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79b29233cef7366fa150ee6915cd3b23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_my_polygon.html">MyPolygon</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a79b29233cef7366fa150ee6915cd3b23">clone</a> ()</td></tr>
<tr class="memdesc:a79b29233cef7366fa150ee6915cd3b23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone a new polygon from this polygon.  <a href="#a79b29233cef7366fa150ee6915cd3b23">More...</a><br/></td></tr>
<tr class="separator:a79b29233cef7366fa150ee6915cd3b23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a228a8a2518f777d47043518e9ab9906c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a228a8a2518f777d47043518e9ab9906c">invert</a> ()</td></tr>
<tr class="memdesc:a228a8a2518f777d47043518e9ab9906c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invert the polygon.  <a href="#a228a8a2518f777d47043518e9ab9906c">More...</a><br/></td></tr>
<tr class="separator:a228a8a2518f777d47043518e9ab9906c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a334f61cbe95224d1823ef10117304e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a6a334f61cbe95224d1823ef10117304e">update</a> ()</td></tr>
<tr class="memdesc:a6a334f61cbe95224d1823ef10117304e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update polygon's AABB and plane after transform.  <a href="#a6a334f61cbe95224d1823ef10117304e">More...</a><br/></td></tr>
<tr class="separator:a6a334f61cbe95224d1823ef10117304e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a2f9e9b51636d034a7bfedaefdb779d3a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_vector3.html">Vector3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a2f9e9b51636d034a7bfedaefdb779d3a">normal</a></td></tr>
<tr class="memdesc:a2f9e9b51636d034a7bfedaefdb779d3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">The normal of the polygon.  <a href="#a2f9e9b51636d034a7bfedaefdb779d3a">More...</a><br/></td></tr>
<tr class="separator:a2f9e9b51636d034a7bfedaefdb779d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26030d5e4b329b159a92a908af03364d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_a_a_b_b_box.html">AABBBox</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a26030d5e4b329b159a92a908af03364d">box</a></td></tr>
<tr class="memdesc:a26030d5e4b329b159a92a908af03364d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The bounding box of this polygon.  <a href="#a26030d5e4b329b159a92a908af03364d">More...</a><br/></td></tr>
<tr class="separator:a26030d5e4b329b159a92a908af03364d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a385fecc2be056e66ef767cf1c7672faa"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#a385fecc2be056e66ef767cf1c7672faa">w</a></td></tr>
<tr class="memdesc:a385fecc2be056e66ef767cf1c7672faa"><td class="mdescLeft">&#160;</td><td class="mdescRight">The plane position of the polygon in plane function ax+by+cz+w=0.  <a href="#a385fecc2be056e66ef767cf1c7672faa">More...</a><br/></td></tr>
<tr class="separator:a385fecc2be056e66ef767cf1c7672faa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb7e046580ed46eb8f242f916d3ba5a8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#afb7e046580ed46eb8f242f916d3ba5a8">share</a></td></tr>
<tr class="memdesc:afb7e046580ed46eb8f242f916d3ba5a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">All polygons that are clones of each other or were split from the same polygon will have the same share value.  <a href="#afb7e046580ed46eb8f242f916d3ba5a8">More...</a><br/></td></tr>
<tr class="separator:afb7e046580ed46eb8f242f916d3ba5a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadfabb5de0ca01b232a6b5faa78ed4f4"><td class="memItemLeft" align="right" valign="top">vector&lt; <a class="el" href="class_vertex3.html">Vertex3</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_polygon.html#aadfabb5de0ca01b232a6b5faa78ed4f4">vertices</a></td></tr>
<tr class="memdesc:aadfabb5de0ca01b232a6b5faa78ed4f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">All the vertices which represnet this polygon. The vertices in a polygon must be coplanar and form a convex loop.  <a href="#aadfabb5de0ca01b232a6b5faa78ed4f4">More...</a><br/></td></tr>
<tr class="separator:aadfabb5de0ca01b232a6b5faa78ed4f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A polygon class. </p>
<p>Represents a convex polygon. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a2661852a272ea82080d84ab38e2bfca7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MyPolygon::MyPolygon </td>
          <td>(</td>
          <td class="paramtype">vector&lt; <a class="el" href="class_vertex3.html">Vertex3</a> &gt;&#160;</td>
          <td class="paramname"><em>_vertices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>_share</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_vertices</td><td>all the vertices stored in a std::vector. </td></tr>
    <tr><td class="paramname">_share</td><td>the share property. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a79b29233cef7366fa150ee6915cd3b23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_my_polygon.html">MyPolygon</a> * MyPolygon::clone </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clone a new polygon from this polygon. </p>

</div>
</div>
<a class="anchor" id="a228a8a2518f777d47043518e9ab9906c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyPolygon::invert </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Invert the polygon. </p>

</div>
</div>
<a class="anchor" id="a6a334f61cbe95224d1823ef10117304e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyPolygon::update </td>
          <td>(</td>
          <td class="paramname">)</td><td></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Update polygon's AABB and plane after transform. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a26030d5e4b329b159a92a908af03364d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_a_a_b_b_box.html">AABBBox</a> MyPolygon::box</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The bounding box of this polygon. </p>

</div>
</div>
<a class="anchor" id="a2f9e9b51636d034a7bfedaefdb779d3a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_vector3.html">Vector3</a> MyPolygon::normal</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The normal of the polygon. </p>

</div>
</div>
<a class="anchor" id="afb7e046580ed46eb8f242f916d3ba5a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double MyPolygon::share</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>All polygons that are clones of each other or were split from the same polygon will have the same share value. </p>

</div>
</div>
<a class="anchor" id="aadfabb5de0ca01b232a6b5faa78ed4f4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vector&lt;<a class="el" href="class_vertex3.html">Vertex3</a>&gt; MyPolygon::vertices</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>All the vertices which represnet this polygon. The vertices in a polygon must be coplanar and form a convex loop. </p>

</div>
</div>
<a class="anchor" id="a385fecc2be056e66ef767cf1c7672faa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double MyPolygon::w</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The plane position of the polygon in plane function ax+by+cz+w=0. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="csg__type_8h_source.html">csg_type.h</a></li>
<li><a class="el" href="csg__type_8cpp.html">csg_type.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Jul 9 2013 15:49:58 for 3D Cell by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1-20130512
</small></address>
</body>
</html>
